package org.sysmhg.base.service.impl;

import java.util.List;

import org.apache.commons.lang.StringUtils;
import org.sysmhg.base.dao.CompanyDAO;
import org.sysmhg.base.dao.CustomerDAO;
import org.sysmhg.base.model.Company;
import org.sysmhg.base.service.CompanyService;
import org.sysmhg.util.Constants;
import org.sysmhg.util.GenericUtil;
import org.sysmhg.util.Pagination;

@SuppressWarnings("unchecked")
public class CompanyServiceImpl implements CompanyService{
	@SuppressWarnings("unused")
	private CompanyDAO companyDAO;


	public void setCompanyDAO(CompanyDAO companyDAO) {
		this.companyDAO = companyDAO;
	}
	
	public List getCompanies(Company company, Pagination paginacion) {
		return companyDAO.getCompanies(company, paginacion);
	}

	public Company getCompany(Company company) {
		return companyDAO.getCompany(company);
	}

	public void createCompany(Company company) {
		companyDAO.createCompany(company);
	}

	public void updateCompany(Company company) {
		companyDAO.updateCompany(company);
	}
	
	public void deleteCompany(Company company) {
		companyDAO.deleteCompany(company);
	}
	
	
}
